/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1abstractclassdemo1;

/**
 *
 * @author apple
 */
public class Elephant extends Animal
{

    public Elephant() {
    }

    public Elephant(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
         System.out.println(this.name+" is eating leaves.");
    }
    
    
}
